//---------------------------------------------------------------------------

#ifndef PROSM_AKTOV_SVH
#define PROSM_AKTOV_SVH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "Shablon_Edit.h"
#include <ExtCtrls.hpp>
#include "cxClasses.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxDBData.hpp"
#include "cxFilter.hpp"
#include "cxGrid.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridDBTableView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxStyles.hpp"
#include <DB.hpp>
#include "cxButtons.hpp"
#include <ActnList.hpp>
#include <Menus.hpp>
#include "frxClass.hpp"
#include "frxDBSet.hpp"
#include "cxCalendar.hpp"
#include "cxDropDownEdit.hpp"
#include "cxMaskEdit.hpp"
#include "cxTextEdit.hpp"
#include <DBCtrls.hpp>
#include <Mask.hpp>
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TfrPROSM_AKTOV_SV : public TfrShablon_Edit
{
__published:	// IDE-managed Components
	TcxGrid *sgPEREVOD;
	TcxGridDBTableView *sgPEREVODDBTableView1;
	TcxGridDBColumn *NOM_ABON;
	TcxGridDBColumn *FIO;
	TcxGridLevel *sgPEREVODLevel1;
	TcxGridDBColumn *DAT_SVER;
	TcxGridDBColumn *POK_SVER;
	TcxGridDBColumn *SPOS_SN;
	TcxGridDBColumn *DAT_WOD;
	TcxGridDBColumn *cxgrdbclmnKOD_OPERATORA;
	TcxButton *btPOISK;
	TActionList *ActionList1;
	TAction *POISK;
	TAction *ADD;
	TAction *EDIT;
	TAction *DEL;
	TAction *PRINT;
	TcxButton *btADD;
	TcxButton *btDelete;
	TcxButton *cxButton1;
	TfrxReport *frxPRINT_AKT_SVER;
	TfrxDBDataset *frxDBPRINT_AKT_SVER;
	TLabel *Label1;
	TDBText *labNOM;
	TLabel *Label2;
	TDBText *labDAT_DOG;
	TDBText *labFIO;
	TDBText *labADRES;
	TLabel *Label4;
	TLabel *Label3;
	TLabel *Label11;
	TLabel *Label12;
	TDBLookupComboBox *cbSPOSOB_SN;
	TLabel *Label13;
	TLabel *Label10;
	TcxButton *btSAVE;
	TAction *SAVE;
	TDBEdit *dbePOK_SCH;
	TDBEdit *dbePRIM;
	TcxDateEdit *dtpDAT_SVER;
	TIBCQuery *dsetPROSM_AKTA_SV;
	TIBCDataSource *dsPROSM_AKTA_SV;
	TAction *actESC;
	TIBCQuery *dsetIZM_POK_SCH;
	TIBCDataSource *dsIZM_POK_SCH;
	void __fastcall FormShow(TObject *Sender);
	void __fastcall POISKExecute(TObject *Sender);
	void __fastcall DELExecute(TObject *Sender);
	void __fastcall PRINTExecute(TObject *Sender);
	void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
	void __fastcall sgPEREVODDBTableView1DblClick(TObject *Sender);
	void __fastcall cbSPOSOB_SNKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dbePOK_SCHKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dbePRIMKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dtpDAT_SVERKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall ADDExecute(TObject *Sender);
	void __fastcall SAVEExecute(TObject *Sender);
	void __fastcall actESCExecute(TObject *Sender);
private:	// User declarations
public:		// User declarations
int NOM,Stat;
String DAT1,DAT2;
	__fastcall TfrPROSM_AKTOV_SV(TComponent* Owner);
	void __fastcall TfrPROSM_AKTOV_SV::Obnovi(int Stat);
	void __fastcall TfrPROSM_AKTOV_SV::IZM_POK_SCH(String MES,String GOD);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrPROSM_AKTOV_SV *frPROSM_AKTOV_SV;
//---------------------------------------------------------------------------
#endif
